package com.huidu.bitrade.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "MemberWalletModifyDTO对象",description = "修改用户钱包余额参数")
public class MemberWalletModifyDTO {
    @ApiModelProperty(value = "钱包id",required = true)
    @NotNull(message = "钱包id不能为空")
    private Long walletId;

    @ApiModelProperty("修改后余额")
    private BigDecimal balance;

    @ApiModelProperty("修改后冻结余额")
    private BigDecimal frozenBalance;

    @ApiModelProperty("修改后系统余额")
    private BigDecimal systemBalance;

    @ApiModelProperty(value = "操作码",required = true)
    @NotEmpty(message = "操作码不能为空")
    private String operCode;

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    private String ip;

    @ApiModelProperty("备注")
    @NotEmpty(message = "备注不能为空")
    private String remark;
}
